﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>提交订单信息</title>
<link href="__PUBLIC__/home/css/style.css" type="text/css" rel="stylesheet" />
<script src="__PUBLIC__/home/js/jquery-1.7.min.js" type="text/javascript"></script>
<script src="__PUBLIC__/home/js/common.js"  type="text/javascript"></script>

</head>
<body class="index">

<form action="{$payact}" method="post">
  <div class="w1200">
  	<div class="position"><a href="#">首页</a> > <a href="#">确认订单</a></div>
      <div class="shopcar">
      	<div class="info_lc"><span class="sp01">我的购物车</span><span class="sp02">填写提交信息表单</span><span class="sp03">在线支付</span></div>
          <dl class="info">
          	<dt><span>确认收货地址</span></dt>
            <dl class="dl02 personinfo">
                <dt>
                    <span>已添加地址</span><a href="{$addAddress}" style="float: right"><span>地址管理-></span></a>
                </dt>
                <div>&nbsp;</div>
                <php>$i=1;</php>
                <php>foreach($addresses as $key => $value){</php>
                    <php>if($i<=5){</php>
                        <label>
                            <div class="addressSelect">
                                <div><input type="radio" class="addressid address_id" name="address_id" value="<?php echo $value['id']; ?>"  checked="checked"></div>
                                <ul class="Addressinfo Address_info">
                                    <div class="address_title"><a href="#" class="modify " title="修改信息"></a>第<php>echo $i;</php>条地址信息 <a href="javascript:over('0')" class="delete "><i class="iconfont icon-close"></i></a></div>
                                    <li>收件人：<php>echo $value['username'];</php></li>
                                    <li>收件地址：<php>echo $value['address'];</php></li>
                                    <li>联系方式：<php>echo $value['phone'];</php></li>
                                    <li>邮编：<php>echo $value['postcode'];</php></li>
                                </ul>  
                                <div><a href="{$del}?id=<?php echo $value['id']; ?>"><button class="return_del" style="">删除</button></a></div>
                               <!--  <div>&nbsp;</div>  
                                <div>&nbsp;</div>  
                                <div>&nbsp;</div>  --> 
                            </div>
                        </label>
                <php>}$i++;}</php>
            </dl>
            <dt>
                
            </dt>
            

          </dl>
          
          <dl>
          	<dt><span>确认订单信息</span></dt>
              <dd>
              	<table width="100%" cellpadding="0" cellspacing="0" border="0">
                    <tr class="tr_t">
                    	<td width="2%">&nbsp;</td>
                      <td width="48%">商品</td>
                      <td width="25%">单价</td>
                      <td width="13%">数量</td>
                      <td width="12%">小计</td>
                    </tr> 
                    <php>$i=0;foreach($shopcar as $key => $v){</php>
                        <php>foreach($v as $k => $value){</php>
                          <tr class="tr_c">
                          	<td>&nbsp;</td>
                            <td>
                            	<table width="100%" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                          <td width="15%"><img src="__PUBLIC__/upload/<?php echo $value['com_img_name']; ?>"/><input type="hidden" name="comid[]" value="<?php echo $value['id']; ?>"></td>
                                          <td width="85%"><a href="#" class="title"><?php echo $value['com_name'].'　'.$value['com_discription'];?></a></td>
                                        </tr>
                              </table>
                            </td>
                            <td class="price">￥<?php echo $value['com_price']; ?></td>
                            <td><?php echo $value['com_num']; ?></td>
                            <td class="price">￥<?php echo $value['com_price']*$value['com_num'];?></td>
                          </tr>
                    <php>}$i+=$value['com_price']*$value['com_num'];}</php>
                    <tr class="tr_d">
                        <td colspan="7">
                          <table width="100%" border="0" cellspacing="0" cellpadding="0">
                              <tr>
                                <td width="3%">&nbsp;</td>
                                <td width="12%">快递费：</td>
                                <td width="65%"><font>￥10<input type="hidden" name="express" value="10"></font></td>
                                <td width="10%">状态：</td>
                                <td width="10%" class="all_price"><font>待付款</font></td>
                              </tr>
                            </table>
                        </td>
                    </tr>
                    <tr><td>&nbsp;</td></tr>
                    <tr class="tr_d">
                      <td colspan="7">
                      	<table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                            	<td width="3%">&nbsp;</td>
                              <td width="12%">买家留言：</td>
                              <td width="65%"><input type="text" name="message" class="msg"/></td>
                              <td width="10%">应付金额：</td>
                              <td width="10%" class="all_price"><font>￥<?php echo $i+10; ?><input type="hidden" name="all_price" value="<?php echo $i; ?>"></font></td>
                            </tr>
                          </table>
                      </td>
                    </tr>
                  </table>
                  <div class="clear"></div> 
         		  </dd>
              </dl>
              <table width="100%" border="0" cellspacing="0" cellpadding="0" class="go_tb">
               <tr>
                 <td width="20%"><a href="{$product}" class="go_buy">继续购物</a></td>
                 <td width="63%">&nbsp;</td>
                 <td width="17%" align="right"><button type="submit"><a class="code">结 算</a></button></td>
               </tr>
              </table>
</form>        
              <div class="clear"></div>
          </div>
      </div>

<!--footer-->



</body>
</html>
